package br.com.beiramar.entity.imovel.valores;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(name = "Valores", schema = "ev")
@NamedQueries({ @NamedQuery(name = "valores.Dados", query = "Select Object(result) from Valores result") })
public class Valores implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "idValores", unique = true, nullable = false)
	private Integer idValores;

	@Column(name = "valoresTempo")
	private Integer valoresTempo;

	@Column(name = "valoresValor")
	private BigDecimal valoresValor;

	@Column(name = "valoresPercent")
	private BigDecimal valoresPercent;

	public Integer getIdValores() {
		return idValores;
	}

	public void setIdValores(Integer idValores) {
		this.idValores = idValores;
	}

	public Integer getValoresTempo() {
		return valoresTempo;
	}

	public void setValoresTempo(Integer valoresTempo) {
		this.valoresTempo = valoresTempo;
	}

	public BigDecimal getValoresValor() {
		return valoresValor;
	}

	public void setValoresValor(BigDecimal valoresValor) {
		this.valoresValor = valoresValor;
	}

	public BigDecimal getValoresPercent() {
		return valoresPercent;
	}

	public void setValoresPercent(BigDecimal valoresPercent) {
		this.valoresPercent = valoresPercent;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((idValores == null) ? 0 : idValores.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Valores other = (Valores) obj;
		if (idValores == null) {
			if (other.idValores != null)
				return false;
		} else if (!idValores.equals(other.idValores))
			return false;
		return true;
	}
}
